package com.sky.exception;

public enum BizCodeEnum {

    UNKONW_EXCEPTION(10000, "未知异常"),
    VALID_EXCEPTION(10001, "参数格式校验失败"),
    SMS_CODE_EXCEPTION(10002, "验证码错误"),
    USER_EXIST_EXCEPTION(10003, "用户名已存在"),
    PHONE_EXIST_EXCEPTION(10004, "手机号已存在"),
    USERNAME_PASSWORD_EXCEPTION(10005, "账号或密码错误"),

    PRODUCT_UP_EXCEPTION(11000, "商品上架异常"),

    SKU_STOCK_EXCEPTION(21000, "库存不足"),

    ;

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    BizCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
